import { Row, Col, Form, AutoComplete, Alert } from 'antd';
import { TypographyTitle } from '@/components/Typography';

export const autoOptions = () => {
  return [
    { value: '@Callerid', label: '@Callerid' },
    { value: '@Calleeid', label: '@Calleeid' },
    { value: '@OriCalleeid', label: '@OriCalleeid' },
    { value: '@CRS', label: '@CRS' },
    { value: '@LineNo', label: '@LineNo' },
    { value: '@CurTimeStamp', label: '@CurTimeStamp' },
    { value: '@IsEof', label: '@IsEof' },
    { value: '@LastError', label: '@LastError' },
    { value: '@Loginflag', label: '@Loginflag' },
    { value: '@WorkID', label: '@WorkID' },
    { value: '@GroupID', label: '@GroupID' },
    { value: '@agccount', label: '@agccount' },
    { value: '@freeagccount', label: '@freeagccount' },
    { value: '@queuelen', label: '@queuelen' },
    { value: '@Pa', label: '@Pa' },
    { value: '@Pb', label: '@Pb' },
  ];
};

export const menuArrays = [
  {
    name: '文件',
    key: 'FileExist',
  },
  {
    name: '长度',
    key: 'Len',
  },
  {
    name: '左边',
    key: 'Left',
  },
  {
    name: '右边',
    key: 'Right',
  },
  {
    name: '中间',
    key: 'Mid',
  },
  {
    name: '删除文件',
    key: 'DeleteFile',
  },
  {
    name: '随机',
    key: 'Random',
  },
  {
    name: '复制文件',
    key: 'FileCopy',
  },
  {
    name: '分裂',
    key: 'Split',
  },
  {
    name: '取代',
    key: 'Replace',
  },
  {
    name: '字节',
    key: 'UniqueCode',
  },
  {
    name: '检查Id',
    key: 'IDCheck',
  },
];

/**
 * fileExist
 * @returns dom
 */
export const renderFileExist = (activeKey: string) => {
  let title =
    activeKey + `（${menuArrays.find((i) => i.key === activeKey)?.name}）`;
  return (
    <Row gutter={[16, 16]} style={{ height: '100%', margin: '0px' }}>
      <Col span={24}>
        <TypographyTitle level={4}>{title}</TypographyTitle>
      </Col>
      <Col span={16}>
        <Alert
          showIcon
          type="info"
          message="简介：判断文件是否存在"
          description={
            <Row>
              {/* <Col span={24}>
                                简介：判断文件是否存在
                            </Col> */}
              <Col span={24}>参数：字符型变量/常量文件名</Col>
              <Col span={24}>返回值：整型，1存在，0不存在</Col>
            </Row>
          }
        />
      </Col>
      <Col span={24}>
        <Row gutter={[16, 16]}>
          <Col span={16}>
            <Form.Item label="文件名" name="filename" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写文件名"
              />
            </Form.Item>
          </Col>
          <Col span={16}>
            <Form.Item label="返回值" name="returnvalue" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写返回值"
              />
            </Form.Item>
          </Col>
        </Row>
      </Col>
      {/* <Col span={24}>
                <Descriptions bordered={true} size={'small'} title='说明信息'>
                    <Descriptions.Item span={3} label="简介">判断文件是否存在</Descriptions.Item>
                    <Descriptions.Item span={3} label="参数">字符型变量/常量文件名</Descriptions.Item>
                    <Descriptions.Item span={3} label="返回值">整型，1存在，0不存在</Descriptions.Item>
                </Descriptions>
            </Col> */}
    </Row>
  );
};

/**
 * Len
 * @returns dom
 */
export const renderLen = (activeKey: string) => {
  let title =
    activeKey + `（${menuArrays.find((i) => i.key === activeKey)?.name}）`;
  return (
    <Row gutter={[16, 16]} style={{ height: '100%', margin: '0px' }}>
      <Col span={24}>
        <TypographyTitle level={4}>{title}</TypographyTitle>
      </Col>
      <Col span={16}>
        <Alert
          showIcon
          type="info"
          message="简介：取字符串长度"
          description={
            <Row>
              {/* <Col span={24}>
                                简介：取字符串长度
                            </Col> */}
              <Col span={24}>参数：字符型变量</Col>
              <Col span={24}>返回值：整型</Col>
            </Row>
          }
        />
      </Col>
      <Col span={24}>
        <Row gutter={[16, 16]}>
          <Col span={16}>
            <Form.Item label="字符串" name="string" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写字符串"
              />
            </Form.Item>
          </Col>
          <Col span={16}>
            <Form.Item label="返回值" name="returnvalue" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写返回值"
              />
            </Form.Item>
          </Col>
        </Row>
      </Col>
      {/* <Col span={12}>
                <Descriptions bordered={true} size={'small'} title='说明信息'>
                    <Descriptions.Item span={3} label="简介">取字符串长度</Descriptions.Item>
                    <Descriptions.Item span={3} label="参数">字符型变量</Descriptions.Item>
                    <Descriptions.Item span={3} label="返回值">整型</Descriptions.Item>
                </Descriptions>
            </Col> */}
    </Row>
  );
};

/**
 * Left
 * @returns dom
 */
export const renderLeft = (activeKey: string) => {
  let title =
    activeKey + `（${menuArrays.find((i) => i.key === activeKey)?.name}）`;
  return (
    <Row gutter={[16, 16]} style={{ height: '100%', margin: '0px' }}>
      <Col span={24}>
        <TypographyTitle level={4}>{title}</TypographyTitle>
      </Col>
      <Col span={16}>
        <Alert
          showIcon
          type="info"
          message="简介：取字符串左子串"
          description={
            <Row>
              {/* <Col span={24}>
                                简介：取字符串左子串
                            </Col> */}
              <Col span={24}>参数1：字符型变量</Col>
              <Col span={24}>参数2：整型变量/常量</Col>
              <Col span={24}>返回值：字符型</Col>
            </Row>
          }
        />
      </Col>
      <Col span={24}>
        <Row gutter={[16, 16]}>
          <Col span={16}>
            <Form.Item label="字符串" name="string" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写字符串"
              />
            </Form.Item>
          </Col>
          <Col span={16}>
            <Form.Item
              label="左取字符个数"
              name="leftstringnum"
              initialValue={''}
            >
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写左取字符个数"
              />
            </Form.Item>
          </Col>
          <Col span={16}>
            <Form.Item label="返回值" name="returnvalue" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写返回值"
              />
            </Form.Item>
          </Col>
        </Row>
      </Col>
      {/* <Col span={12}>
                <Descriptions bordered={true} size={'small'} title='说明信息'>
                    <Descriptions.Item span={3} label="简介">取字符串左子串</Descriptions.Item>
                    <Descriptions.Item span={3} label="参数1">字符型变量</Descriptions.Item>
                    <Descriptions.Item span={3} label="参数2">整型变量/常量</Descriptions.Item>
                    <Descriptions.Item span={3} label="返回值">字符型</Descriptions.Item>
                </Descriptions>
            </Col> */}
    </Row>
  );
};

/**
 * Right
 * @returns dom
 */
export const renderRight = (activeKey: string) => {
  let title =
    activeKey + `（${menuArrays.find((i) => i.key === activeKey)?.name}）`;
  return (
    <Row gutter={[16, 16]} style={{ height: '100%', margin: '0px' }}>
      <Col span={24}>
        <TypographyTitle level={4}>{title}</TypographyTitle>
      </Col>
      <Col span={16}>
        <Alert
          showIcon
          type="info"
          message="简介：取字符串右子串"
          description={
            <Row>
              {/* <Col span={24}>
                                简介：取字符串右子串
                            </Col> */}
              <Col span={24}>参数1：字符型变量</Col>
              <Col span={24}>参数2：整型变量/常量</Col>
              <Col span={24}>返回值：字符型</Col>
            </Row>
          }
        />
      </Col>
      <Col span={24}>
        <Row gutter={[16, 16]}>
          <Col span={16}>
            <Form.Item label="字符串" name="string" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写字符串"
              />
            </Form.Item>
          </Col>
          <Col span={16}>
            <Form.Item
              label="右取字符个数"
              name="rightstringnum"
              initialValue={''}
            >
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写右取字符个数"
              />
            </Form.Item>
          </Col>
          <Col span={16}>
            <Form.Item label="返回值" name="returnvalue" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写返回值"
              />
            </Form.Item>
          </Col>
        </Row>
      </Col>
      {/* <Col span={12}>
                <Descriptions bordered={true} size={'small'} title='说明信息'>
                    <Descriptions.Item span={3} label="简介">取字符串右子串</Descriptions.Item>
                    <Descriptions.Item span={3} label="参数1">字符型变量</Descriptions.Item>
                    <Descriptions.Item span={3} label="参数2">整型变量/常量</Descriptions.Item>
                    <Descriptions.Item span={3} label="返回值">字符型</Descriptions.Item>
                </Descriptions>
            </Col> */}
    </Row>
  );
};

/**
 * Mid
 * @returns dom
 */
export const renderMid = (activeKey: string) => {
  let title =
    activeKey + `（${menuArrays.find((i) => i.key === activeKey)?.name}）`;
  return (
    <Row gutter={[16, 16]} style={{ height: '100%', margin: '0px' }}>
      <Col span={24}>
        <TypographyTitle level={4}>{title}</TypographyTitle>
      </Col>
      <Col span={16}>
        <Alert
          showIcon
          type="info"
          message="简介：取字符串子串"
          description={
            <Row>
              {/* <Col span={24}>
                                简介：取字符串子串
                            </Col> */}
              <Col span={24}>参数1：字符型变量</Col>
              <Col span={24}>参数2：整型变量/常量</Col>
              <Col span={24}>返回值：字符型</Col>
            </Row>
          }
        />
      </Col>
      <Col span={24}>
        <Row gutter={[16, 16]}>
          <Col span={16}>
            <Form.Item label="字符串" name="string" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写字符串"
              />
            </Form.Item>
          </Col>
          <Col span={16}>
            <Form.Item label="开始位置" name="startindex" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写右取字符个数"
              />
            </Form.Item>
          </Col>
          <Col span={16}>
            <Form.Item label="字符个数" name="stringnum" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写右取字符个数"
              />
            </Form.Item>
          </Col>
          <Col span={16}>
            <Form.Item label="返回值" name="returnvalue" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写返回值"
              />
            </Form.Item>
          </Col>
        </Row>
      </Col>
      {/* <Col span={12}>
                <Descriptions bordered={true} size={'small'} title='说明信息'>
                    <Descriptions.Item span={3} label="简介">取字符串子串</Descriptions.Item>
                    <Descriptions.Item span={3} label="参数1">字符型变量</Descriptions.Item>
                    <Descriptions.Item span={3} label="参数2，3">整型变量/常量</Descriptions.Item>
                    <Descriptions.Item span={3} label="返回值">字符型</Descriptions.Item>
                </Descriptions>
            </Col> */}
    </Row>
  );
};

/**
 * DeleteFile
 * @returns dom
 */
export const renderDeleteFile = (activeKey: string) => {
  let title =
    activeKey + `（${menuArrays.find((i) => i.key === activeKey)?.name}）`;
  return (
    <Row gutter={[16, 16]} style={{ height: '100%', margin: '0px' }}>
      <Col span={24}>
        <TypographyTitle level={4}>{title}</TypographyTitle>
      </Col>
      <Col span={16}>
        <Alert
          showIcon
          type="info"
          message="简介：在当前放音目录下找被删除的文件"
          description={
            <Row>
              {/* <Col span={24}>
                                简介：在当前放音目录下找被删除的文件
                            </Col> */}
              <Col span={24}>返回值：整型，0删除成功，1删除失败</Col>
            </Row>
          }
        />
      </Col>
      <Col span={24}>
        <Row gutter={[16, 16]}>
          <Col span={16}>
            <Form.Item label="文件名" name="filename" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写字符串"
              />
            </Form.Item>
          </Col>
          <Col span={16}>
            <Form.Item label="返回值" name="returnvalue" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写返回值"
              />
            </Form.Item>
          </Col>
        </Row>
      </Col>
      {/* <Col>
                <Descriptions bordered={true} size={'small'} title='说明信息'>
                    <Descriptions.Item span={3} label="简介">在当前放音目录下找被删除的文件</Descriptions.Item>
                    <Descriptions.Item span={3} label="返回值">整型，0删除成功，1删除失败</Descriptions.Item>
                </Descriptions>
            </Col> */}
    </Row>
  );
};

/**
 * Random
 * @returns dom
 */
export const renderRandom = (activeKey: string) => {
  let title =
    activeKey + `（${menuArrays.find((i) => i.key === activeKey)?.name}）`;
  return (
    <Row gutter={[16, 16]} style={{ height: '100%', margin: '0px' }}>
      <Col span={24}>
        <TypographyTitle level={4}>{title}</TypographyTitle>
      </Col>
      <Col span={16}>
        <Alert
          showIcon
          type="info"
          message="简介：在上限和下限之间产生一个随机数"
          description={
            <Row>
              {/* <Col span={24}>
                                简介：在上限和下限之间产生一个随机数
                            </Col> */}
              <Col span={24}>返回值：整型</Col>
            </Row>
          }
        />
      </Col>
      <Col span={24}>
        <Row gutter={[16, 16]}>
          <Col span={16}>
            <Form.Item label="上限" name="ceiling" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写字符串"
              />
            </Form.Item>
          </Col>
          <Col span={16}>
            <Form.Item label="下限" name="floor" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写右取字符个数"
              />
            </Form.Item>
          </Col>
          <Col span={16}>
            <Form.Item label="返回值" name="returnvalue" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写返回值"
              />
            </Form.Item>
          </Col>
        </Row>
      </Col>
      {/* <Col span={12}>
                <Descriptions bordered={true} size={'small'} title='说明信息'>
                    <Descriptions.Item span={3} label="简介">在上限和下限之间产生一个随机数</Descriptions.Item>
                    <Descriptions.Item span={3} label="返回值">整型</Descriptions.Item>
                </Descriptions>
            </Col> */}
    </Row>
  );
};

/**
 * FileCopy
 * @returns dom
 */
export const renderFileCopy = (activeKey: string) => {
  let title =
    activeKey + `（${menuArrays.find((i) => i.key === activeKey)?.name}）`;
  return (
    <Row gutter={[16, 16]} style={{ height: '100%', margin: '0px' }}>
      <Col span={24}>
        <TypographyTitle level={4}>{title}</TypographyTitle>
      </Col>
      <Col span={16}>
        <Alert
          showIcon
          type="info"
          message="简介：取字符串长度"
          description={
            <Row>
              {/* <Col span={24}>
                                简介：取字符串长度
                            </Col> */}
              <Col span={24}>参数：字符型变量</Col>
              <Col span={24}>返回值：整型</Col>
            </Row>
          }
        />
      </Col>
      <Col span={24}>
        <Row gutter={[16, 16]}>
          <Col span={16}>
            <Form.Item label="源文件名" name="sourcefilename" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写字符串"
              />
            </Form.Item>
          </Col>
          <Col span={16}>
            <Form.Item
              label="目标文件名"
              name="targetfilename"
              initialValue={''}
            >
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写右取字符个数"
              />
            </Form.Item>
          </Col>
          <Col span={16}>
            <Form.Item label="返回值" name="returnvalue" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写返回值"
              />
            </Form.Item>
          </Col>
        </Row>
      </Col>
      {/* <Col span={12}>
                <Descriptions bordered={true} size={'small'} title='说明信息'>
                    <Descriptions.Item span={3} label="简介">复制文件</Descriptions.Item>
                    <Descriptions.Item span={3} label="返回值">整型，0成功，1失败</Descriptions.Item>
                </Descriptions>
            </Col> */}
    </Row>
  );
};

/**
 * Split
 * @returns dom
 */
export const renderSplit = (activeKey: string) => {
  let title =
    activeKey + `（${menuArrays.find((i) => i.key === activeKey)?.name}）`;
  return (
    <Row gutter={[16, 16]} style={{ height: '100%', margin: '0px' }}>
      <Col span={24}>
        <TypographyTitle level={4}>{title}</TypographyTitle>
      </Col>
      <Col span={16}>
        <Alert
          showIcon
          type="info"
          message="简介：将字符串用分隔符分割"
          description={
            <Row>
              {/* <Col span={24}>
                                简介：将字符串用分隔符分割
                            </Col> */}
              <Col span={24}>返回值：字符型</Col>
            </Row>
          }
        />
      </Col>
      <Col span={24}>
        <Row gutter={[16, 16]}>
          <Col span={16}>
            <Form.Item label="源字符串" name="sourcestring" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写字符串"
              />
            </Form.Item>
          </Col>
          <Col span={16}>
            <Form.Item label="分隔符" name="separator" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写右取字符个数"
              />
            </Form.Item>
          </Col>
          <Col span={16}>
            <Form.Item label="编号" name="number" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写右取字符个数"
              />
            </Form.Item>
          </Col>
          <Col span={16}>
            <Form.Item label="返回值" name="returnvalue" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写返回值"
              />
            </Form.Item>
          </Col>
        </Row>
      </Col>
      {/* <Col span={12}>
                <Descriptions bordered={true} size={'small'} title='说明信息'>
                    <Descriptions.Item span={3} label="简介">将字符串用分隔符分割</Descriptions.Item>
                    <Descriptions.Item span={3} label="返回值">字符型</Descriptions.Item>
                </Descriptions>
            </Col> */}
    </Row>
  );
};

/**
 * Replace
 * @returns dom
 */
export const renderReplace = (activeKey: string) => {
  let title =
    activeKey + `（${menuArrays.find((i) => i.key === activeKey)?.name}）`;
  return (
    <Row gutter={[16, 16]} style={{ height: '100%', margin: '0px' }}>
      <Col span={24}>
        <TypographyTitle level={4}>{title}</TypographyTitle>
      </Col>
      <Col span={16}>
        <Alert
          showIcon
          type="info"
          message="简介：尚未实现"
          description={
            <Row>
              {/* <Col span={24}>
                                简介：尚未实现
                            </Col> */}
              {/* <Col span={24}>
                                参数：字符型变量
                            </Col>
                            <Col span={24}>
                                返回值：整型
                            </Col> */}
            </Row>
          }
        />
      </Col>
      <Col span={24}>
        <Row gutter={[16, 16]}>
          <Col span={16}>
            <Form.Item label="源字符串" name="sourcestring" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写字符串"
              />
            </Form.Item>
          </Col>
          <Col span={16}>
            <Form.Item label="被替换子串" name="replacedstr" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写右取字符个数"
              />
            </Form.Item>
          </Col>
          <Col span={16}>
            <Form.Item label="新子串" name="newstr" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写右取字符个数"
              />
            </Form.Item>
          </Col>
          <Col span={16}>
            <Form.Item label="返回值" name="returnvalue" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写返回值"
              />
            </Form.Item>
          </Col>
        </Row>
      </Col>
      {/* <Col span={12}>
                <Descriptions bordered={true} size={'small'} title='说明信息'>
                    <Descriptions.Item span={3} label="简介">尚未实现</Descriptions.Item>
                </Descriptions>
            </Col> */}
    </Row>
  );
};

/**
 * UniqueCode
 * @returns dom
 */
export const renderUniqueCode = (activeKey: string) => {
  let title =
    activeKey + `（${menuArrays.find((i) => i.key === activeKey)?.name}）`;
  return (
    <Row gutter={[16, 16]} style={{ height: '100%', margin: '0px' }}>
      <Col span={24}>
        <TypographyTitle level={4}>{title}</TypographyTitle>
      </Col>
      <Col span={16}>
        <Alert
          showIcon
          type="info"
          message="简介：生成不重复的8位纯数字字符串"
          description={
            <Row>
              {/* <Col span={24}>
                                简介：生成不重复的8位纯数字字符串
                            </Col> */}
            </Row>
          }
        />
      </Col>
      <Col span={24}>
        <Row gutter={[16, 16]}>
          <Col span={16}>
            <Form.Item label="返回值" name="returnvalue" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写返回值"
              />
            </Form.Item>
          </Col>
        </Row>
      </Col>
      {/* <Col span={12}>
                <Descriptions bordered={true} size={'small'} title='说明信息'>
                    <Descriptions.Item span={3} label="简介">生成不重复的8位纯数字字符串</Descriptions.Item>
                </Descriptions>
            </Col> */}
    </Row>
  );
};

/**
 * IDCheck
 * @returns dom
 */
export const renderIDCheck = (activeKey: string) => {
  let title =
    activeKey + `（${menuArrays.find((i) => i.key === activeKey)?.name}）`;
  return (
    <Row gutter={[16, 16]} style={{ height: '100%', margin: '0px' }}>
      <Col span={24}>
        <TypographyTitle level={4}>{title}</TypographyTitle>
      </Col>
      <Col span={16}>
        <Alert
          showIcon
          type="info"
          message="简介：校验生成号码是否有效；0有效，1无效"
          description={
            <Row>
              {/* <Col span={24}>
                                简介：校验生成号码是否有效；0有效，1无效
                            </Col> */}
            </Row>
          }
        />
      </Col>
      <Col span={24}>
        <Row gutter={[16, 16]}>
          <Col span={16}>
            <Form.Item label="身份证号码" name="idcardnumber" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写字符串"
              />
            </Form.Item>
          </Col>
          <Col span={16}>
            <Form.Item label="返回值" name="returnvalue" initialValue={''}>
              <AutoComplete
                options={autoOptions()}
                style={{ width: '100%' }}
                allowClear
                placeholder="请填写返回值"
              />
            </Form.Item>
          </Col>
        </Row>
      </Col>
      {/* <Col span={12}>
                <Descriptions bordered={true} size={'small'} title='说明信息'>
                    <Descriptions.Item span={3} label="简介">校验生成号码是否有效；0有效，1无效</Descriptions.Item>
                </Descriptions>
            </Col> */}
    </Row>
  );
};

export const menuArray = [
  'FileExist',
  'Len',
  'Left',
  'Right',
  'Mid',
  'DeleteFile',
  'Random',
  'FileCopy',
  'Split',
  'Replace',
  'UniqueCode',
  'IDCheck',
];
